<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>卫计委</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../../../css/amazeui.css"/>
    <link rel="stylesheet" href="../../../css/im.css"/>
    <script src="../../../js/jquery-1.4.2.min.js"></script>
    <script src="../../../js/iscroll.js"></script>
    <style>
        #wrapper {
            position: absolute;
            z-index: 1;
            top: 45px;
            bottom: 48px;
            left: 0;
            width: 100%;
            overflow: hidden;
        }

        #scroller {
            position: absolute;
            z-index: 1;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            width: 100%;
        }
    </style>
    <!--下拉框-->
    <script>
        var arr = ['是', '否'];
        $(document).ready(function () {
            var _select = document.getElementById("single");
            var _select1 = document.getElementById("double");
            for (var i = 0; i < arr.length; i++) {
                var obj = arr[i];
                _select += '<option>' + obj + '</option>';
                _select1 += '<option>' + obj + '</option>';
            }
            $('#single').append(_select);
            $('#double').append(_select1);
        });

        //下拉栏js
        var $$ = function (id) {
            return document.getElementById(id);
        };
        function OC_1(i) {
            var btnSelect1 = $$("btn_select_1");
            var curSelect1 = btnSelect1.getElementsByTagName("span")[0];
            var chgSelect1 = $$(i);
            curSelect1.innerHTML = chgSelect1.value;
        }
        function OC_2(i) {
            var btnSelect1 = $$("btn_select_2");
            var curSelect1 = btnSelect1.getElementsByTagName("span")[0];
            var chgSelect1 = $$(i);

            curSelect1.innerHTML = chgSelect1.value;

        }

    </script>
    <!--scroll-->
    <script>
        var myScroll;
        function loaded() {
            myScroll = new IScroll('#wrapper', {mouseWheel: true, click: true});
        }
        document.addEventListener('touchmove', function (e) {
            e.preventDefault();
        }, false);
        document.addEventListener('DOMContentLoaded', function () {
            setTimeout(loaded, 200);
        }, false);
    </script>

</head>
<body>
<div class="am-tabs" id="doc-my-tabs">
    <!--导航栏-->
    <ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify am-topbar-fixed-top">
        <li id="tabOne" class="am-active"><a id="title">卫计委</a></li>
    </ul>
    <!--滚动部分-->
    <!--<div id="wrapper" class="am-tabs-bd">-->
    <!--<div id="scroller" class="am-tab-panel am-active">-->
    <!--<br>-->
    <table class="am-table am-text-middle am-table-nobordered am-table-compact topPadding">
        <tbody>
        <tr>
            <th>是否独生子女户</th>
            <th>
                <div class="btn-select" id="btn_select_1">
                    <span class="cur-select">请选择</span>
                    <select id="single" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                    </select>
                </div>
            </th>
        </tr>
        <tr>
            <th>是否双女户</th>
            <th>
                <div class="btn-select" id="btn_select_2">
                    <span class="cur-select">请选择</span>
                    <select id="double" onclick="OC_2(this.id)" onchange="OC_1(this.id)">
                    </select>
                </div>
            </th>
        </tr>
        </tbody>
    </table>
    <div align="center">
        <button type="button" class="am-btn am-btn-primary am-radius im-fp-bt-select">保存</button>
    </div>
</div>
<!--</div>-->
<!--</div>-->

<!--返回按钮-->
<img src="../../../img/Back.png" class="img-left"
     onclick="backBtn()">
</div>
<script>

    //返回按钮
    function backBtn() {
        window.localStorage.setItem("page",2);
        window.localStorage.setItem("input",2);
        window.top.location.href="../../../main.html";
    }
</script>
</body>
</html>
